package com.java.extends_;

/**
 * 继承 - 父类
 */
public class Parent extends Grand {
    private Integer name = 2;
    public String parent = "parent";
    static String staticVar = "staticParent";
    
    public Parent() {}
    
    public Parent(String parent, Integer name) {
        this.name = name;
        this.parent = parent;
    }
    
    private void privateFunc() {
        System.out.println("private");
    }
    
    public void publicFunc() {
        System.out.println("public");
    }
    
    static void staticFunc() {
        System.out.println("static");
    }
    
    final void finalFunc() {
        System.out.println("final");
    }
}
